/**
 * 
 */
package kr.co.insoft.core.repository.template.application;

import java.util.List;

import kr.co.insoft.core.model.paging.PagingModel;
import kr.co.insoft.core.model.template.application.ApplicationEntityModel;
import kr.co.insoft.core.model.template.application.ApplicationTypeEntityModel;
import kr.co.insoft.framework.exceptions.RepositoryException;

/**
 * @author IN-SOFT Inc. Park Jong Taek(jtpark@in-soft.co.kr)
 * 
 */
public interface ApplicationRepository {
	/**
	 * Application Paging 목록 / pagingModel 검증
	 * 
	 * @param pagingModel
	 * @return
	 * @throws RepositoryException
	 */
	public List<ApplicationEntityModel> getPagingList(PagingModel pagingModel)
			throws RepositoryException;

	/**
	 * Application 전체 카운트 / pagingModel 검증
	 * 
	 * @param pagingModel
	 * @return
	 * @throws RepositoryException
	 */
	public int getTotalCount(PagingModel pagingModel)
			throws RepositoryException;
	
	/**
	 * Application Name 중복체크
	 * 
	 * @param scriptEntityModel
	 * @throws RepositoryException
	 */
	public int isExistApplicationName(ApplicationEntityModel applicationEntityModel)
			throws RepositoryException;

	/**
	 * Application Type 목록
	 * 
	 * @param
	 * @return
	 * @throws RepositoryException
	 */
	public List<ApplicationTypeEntityModel> getTypeList()
			throws RepositoryException;
	
	/**
	 * Application 생성
	 * 
	 * @param applicationEntityModel
	 * @throws RepositoryException
	 */
	public ApplicationEntityModel createApplication(ApplicationEntityModel applicationEntityModel)
			throws RepositoryException;
	
	/**
	 * Application / Application 검증
	 * 
	 * @param applicationEntityModel
	 * @return
	 * @throws RepositoryException
	 */
	public ApplicationEntityModel getApplication(
			ApplicationEntityModel applicationEntityModel) throws RepositoryException;

	/**
	 * Application 삭제
	 * 
	 * @param applicationid
	 * @throws RepositoryException
	 */
	public void doRemoveApplication(String applicationid)
			throws RepositoryException;

}
